StandardGetFile
StandardGetFile Display the default Open dialog box
#include <StandardFile.h> Standard File Package
void StandardGetFile(fileFilter, numTypes,typeList:,reply: );
FileFilterProcPtr fileFilter ; an optional file filter function
short numTypes:; number of file types to be displayed.
SFTypeList typeList ; list of types to be displayed
StandardFileReply *reply ; address of the reply record
Use the StandardGetFile procedure to display the default Open dialog box when the
user is opening a file.
fileFilter points to an optional file filter function, provided by your
application, through which StandardGetFile passes files of the
specified types. See Callback Routines under the section en titled
Customizing Your Interface for a description of the file filter
function, which uses this syntax:
pascal Boolean MyStandardFileFilter (CInfoPBPtr pb);
numTypes specifies the number of file types to be displayed. You can specify
one or more types. If you specify a numTypes value of -1, the first
filtering passes files of all types. A numTypes value of 0 filters out
all files.
typeList is the list of types to be displayed
typedef OSType SFTypeList[4];
reply points to the reply record, which StandardGetFile fills in before
returning.
Returns: none

Notes: StandardGetFile presents a dialog box through which the user specifies
the name and location of a file to be opened. During the dialog,
StandardGetFile gets and handles events until the user completes the
interaction, either by selecting a file to open or by canceling the operation.
StandardGetFile returns the user's input in a standard file reply
record, described in
About the Standard File Package and System 7.0.